package top.yxqz.spring.pojo;

/**
 * @author: 余小小
 * @date: 2023/3/30
 * @description：学生类
 */
public class Student implements yxqz {
    private String userName;
    private String stuId;
    private Integer age;
    private String gender;

    public Student() {
    }

    public Student(String userName, String stuId, Integer age, String gender) {
        this.userName = userName;
        this.stuId = stuId;
        this.age = age;
        this.gender = gender;
    }


    @Override
    public void helloStudent() {
        System.out.println("我是人工智能学院的一个好学生");
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return stuId
     */
    public String getStuId() {
        return stuId;
    }

    /**
     * 设置
     * @param stuId
     */
    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    public String toString() {
        return "Student{userName = " + userName + ", stuId = " + stuId + ", age = " + age + ", gender = " + gender + "}";
    }
}
